-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(cdp): allow disabling site destinations #1563
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Size Change: +3.99 kB (+0.13%) Total Size: 3.19 MB
ℹ️ View Unchanged
|
src/site-apps.ts
Outdated
} | ||
} | ||
|
||
// TODO: opting out of stuff should disable this | ||
afterDecideResponse(response: DecideResponse): void { | ||
this._decideServerResponse = response['siteApps'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variable _decideServerResponse
makes me think this contains the whole response, not just the siteApps
key
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
renamed to "_decideServerSiteAppsResponse"
So... I finally had a look, and I think we're most of the way there. One more thing: there's a chance if you don't opt in, that the event collector will collect forever. Is there ever a "definitely opted out" event to hook into, which would stop it? |
That is not a thing. It's either user is opted in/out by default and consent has been toggled. Currently, we'll clear the We could reuse the
|
Wait... so what happens if:
They way I understand the last comment, is that they won't count as a converted user (we drop all events captured, as when site apps finished loading, we didn't have consent yet). Is that how it works, or did I misunderstand something again? If that is how it works though, it's definitely far from ideal and needs fixing. |
…sedInvocations after site_destinations have been loaded
…lear missedInvocations after site_destinations have been loaded" This reverts commit 19d0a7a.
Sorry to be a pain but I will really want to get this in first |
I updated the code to save initial campaign/referrer props parameters to
If the user reloads the page between step 2 - 4 we'll lose the gclid property. |
Changes
site_destination
's ifisOptedOut
is false.opt_in_capturing()
is being called at a later point.opt_in_capturing
&opt_out_capturing
based on the cookie banner (link)TODOs:
Checklist